package com.hq.bootdemo.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

//@RestController
@Controller
public class TestController {
    @GetMapping("/test")
    @ResponseBody
    public String test(){
        return "hello World";
    }

    @GetMapping("/demo01")
    public String demo01(){
        return "demo01";
    }
}
